package com.mano.commons.web.constants;

public interface WebConstants {

    // token
    String MEMBER_TOKEN_KEYPREFIX = "mayikt.member.login";

    // 安卓的登陆类型
    String MEMBER_LOGIN_TYPE_ANDROID = "Android";
    // IOS的登陆类型
    String MEMBER_LOGIN_TYPE_IOS = "IOS";

    // PC的登陆类型
    String MEMBER_LOGIN_TYPE_PC = "PC";

    // 登陆超时时间 有效期 90天
    Long MEMBRE_LOGIN_TOKEN_TIME = 77776000L;

	// 登录的token 放入cookies 中
    String LOGIN_TOKEN_COOKIES = "login.pc.token";

    String LOGIN_QQ_OPENID = "qq_openid";

    String QQ_LOGINTYPE ="qq_login" ;

    /**
     * 认证信息Http请求头
     */
    String JWT_TOKEN_HEADER = "Authorization";


    /**
     * OAuth2.0
     * JWT令牌前缀
     * Authorization: bearer ce334918-e666-455a-8ecd-8bd680415d84
     */
    String JWT_TOKEN_PREFIX = "Bearer ";

    /**
     *  jwt 增强的 放 user
     */
    String JWT_ENCHANCER_USER="USER";

    /**
     * OAuth2.0
     * Client 前缀
     * Authorization: Basic dXNlci1jbGllbnQ6dXNlci1zZWNyZXQtODg4OA==
     */
    String CLIENT_PREFIX = "Basic ";

    /**
     * 用户信息Http请求头
     */
    String USER_TOKEN_HEADER = "user";

    String REDIRECT_URL = "redirect_url";
    String SSO_USER = "xxl_sso_user";
    String SSO_SERVER = "sso_server";
    String SSO_LOGIN = "/login";
    String SSO_LOGOUT = "/logout";
    String SSO_SESSIONID = "xxl_sso_sessionid";

}
